package com.example.main.adpater

import androidx.coordinatorlayout.widget.CoordinatorLayout.Behavior
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentPagerAdapter

class MainPageAdapter constructor(fm :FragmentManager,private var fragments : List<Fragment>,behavior: Int,):FragmentPagerAdapter(fm ,behavior) {
    override fun getCount(): Int=fragments.size

    override fun getItem(position: Int): Fragment=fragments[position]


}